-- GENERATED SPELL FOR [Male Kaliri Hatchling] --


function spell0_17039(pUnit, Event) --@Swoop,n/a--
pUnit:FullCastSpellOnTarget(5708,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17039', 2297, 1)
end

function Sorts_17039(pUnit, Event)
local choix_sorts_17039 = math.random(0, 0)
if choix_sorts_17039 == 0 then
pUnit:RegisterEvent('spell0_17039', 1, 1)
end
end

function mob17039_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17039', math.random(1500, 3000), 1)
end

function mob17039_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17039_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17039_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17039, 1, 'mob17039_Action')
RegisterUnitEvent(17039, 2, 'mob17039_Leave')
RegisterUnitEvent(17039, 3, 'mob17039_Kill')
RegisterUnitEvent(17039, 4, 'mob17039_Die')
